<?php
class NPhpEngine {
function __construct($args){}


function setTemplate($template){
	$this->_template=$template;
}
function getTemplate(){
	return $this->_template;
}




function render(){
	if (!file_exists($this->getTemplate())) {NError::raiseError(0,"no template  ".$this->getTemplate()." at ".__FILE__." line ".__LINE__);exit;}
	ob_start();
	include($this->getTemplate());
	$tpl = ob_get_contents();
	ob_end_clean();
	echo  $tpl;
	
}
}
?>